import { nearest_formview } from "./nearest.mjs";

export default function viewmode(node) {
  let formview = nearest_formview(node);
  return formview ? formview.thin_viewmode : "read";
}
